<template>
  <div class="product-launch-registration">
    <div class="page-header">
      <div class="container">
        <div class="breadcrumb">
          <el-breadcrumb separator="/">
            <el-breadcrumb-item @click="$router.push('/activities')">活动中心</el-breadcrumb-item>
            <el-breadcrumb-item>产品发布会报名</el-breadcrumb-item>
          </el-breadcrumb>
        </div>
        <h1 class="page-title">产品发布会报名</h1>
        <p class="page-subtitle">见证创新产品发布，把握行业发展先机</p>
      </div>
    </div>
    
    <div class="container">
      <!-- 发布会信息 -->
      <section class="launch-info-section" v-if="selectedLaunch">
        <div class="launch-card">
          <div class="launch-image">
            <img :src="selectedLaunch.image" :alt="selectedLaunch.title">
            <div class="launch-type-badge">{{ selectedLaunch.type }}</div>
          </div>
          <div class="launch-details">
            <h2>{{ selectedLaunch.title }}</h2>
            <p class="launch-description">{{ selectedLaunch.description }}</p>
            <div class="launch-meta">
              <div class="meta-item">
                <el-icon><Clock /></el-icon>
                <span>{{ selectedLaunch.time }}</span>
              </div>
              <div class="meta-item">
                <el-icon><Location /></el-icon>
                <span>{{ selectedLaunch.location }}</span>
              </div>
              <div class="meta-item">
                <el-icon><User /></el-icon>
                <span>限额 {{ selectedLaunch.capacity }} 人</span>
              </div>
              <div class="meta-item">
                <el-icon><Tickets /></el-icon>
                <span>已报名 {{ selectedLaunch.registered }} 人</span>
              </div>
            </div>
            <div class="launch-highlights" v-if="selectedLaunch.highlights">
              <h4>发布亮点</h4>
              <ul>
                <li v-for="highlight in selectedLaunch.highlights" :key="highlight">
                  {{ highlight }}
                </li>
              </ul>
            </div>
            <div class="launch-companies" v-if="selectedLaunch.companies">
              <h4>参与企业</h4>
              <div class="companies-list">
                <span v-for="company in selectedLaunch.companies" :key="company" class="company-tag">
                  {{ company }}
                </span>
              </div>
            </div>
          </div>
        </div>
      </section>

      <!-- 报名表单 -->
      <section class="registration-form-section">
        <h2 class="section-title">报名信息</h2>
        <div class="form-container">
          <el-form :model="registrationForm" :rules="registrationRules" ref="registrationFormRef" label-width="120px">
            <div class="form-section">
              <h3>基本信息</h3>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="姓名" prop="name">
                    <el-input v-model="registrationForm.name" placeholder="请输入您的姓名" />
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="联系电话" prop="phone">
                    <el-input v-model="registrationForm.phone" placeholder="请输入联系电话" />
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="邮箱地址" prop="email">
                    <el-input v-model="registrationForm.email" placeholder="请输入邮箱地址" />
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="职位" prop="position">
                    <el-input v-model="registrationForm.position" placeholder="请输入您的职位" />
                  </el-form-item>
                </el-col>
              </el-row>
            </div>

            <div class="form-section">
              <h3>公司信息</h3>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="公司名称" prop="company">
                    <el-input v-model="registrationForm.company" placeholder="请输入公司名称" />
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="所属行业" prop="industry">
                    <el-select v-model="registrationForm.industry" placeholder="请选择所属行业" style="width: 100%">
                      <el-option label="制造业" value="manufacturing" />
                      <el-option label="信息技术" value="it" />
                      <el-option label="汽车工业" value="automotive" />
                      <el-option label="电子设备" value="electronics" />
                      <el-option label="医疗器械" value="medical" />
                      <el-option label="其他" value="other" />
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="公司性质" prop="companyType">
                    <el-select v-model="registrationForm.companyType" placeholder="请选择公司性质" style="width: 100%">
                      <el-option label="制造商" value="manufacturer" />
                      <el-option label="系统集成商" value="integrator" />
                      <el-option label="经销商" value="distributor" />
                      <el-option label="最终用户" value="end_user" />
                      <el-option label="投资机构" value="investor" />
                      <el-option label="媒体机构" value="media" />
                      <el-option label="其他" value="other" />
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="城市" prop="city">
                    <el-input v-model="registrationForm.city" placeholder="请输入所在城市" />
                  </el-form-item>
                </el-col>
              </el-row>
            </div>

            <div class="form-section">
              <h3>参与信息</h3>
              <el-form-item label="参与目的" prop="purpose">
                <el-radio-group v-model="registrationForm.purpose">
                  <el-radio label="product_info">了解新产品信息</el-radio>
                  <el-radio label="procurement">采购需求</el-radio>
                  <el-radio label="partnership">寻求合作机会</el-radio>
                  <el-radio label="investment">投资意向</el-radio>
                  <el-radio label="media_coverage">媒体报道</el-radio>
                  <el-radio label="other">其他</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="关注产品" prop="interestedProducts">
                <el-checkbox-group v-model="registrationForm.interestedProducts">
                  <el-checkbox label="industrial_robots">工业机器人</el-checkbox>
                  <el-checkbox label="service_robots">服务机器人</el-checkbox>
                  <el-checkbox label="automation_equipment">自动化设备</el-checkbox>
                  <el-checkbox label="ai_solutions">AI解决方案</el-checkbox>
                  <el-checkbox label="iot_platforms">物联网平台</el-checkbox>
                  <el-checkbox label="smart_manufacturing">智能制造系统</el-checkbox>
                </el-checkbox-group>
              </el-form-item>
              <el-form-item label="预算范围" prop="budgetRange">
                <el-select v-model="registrationForm.budgetRange" placeholder="请选择预算范围" style="width: 100%">
                  <el-option label="10万以下" value="below_100k" />
                  <el-option label="10-50万" value="100k_500k" />
                  <el-option label="50-100万" value="500k_1m" />
                  <el-option label="100-500万" value="1m_5m" />
                  <el-option label="500万以上" value="above_5m" />
                  <el-option label="暂无预算" value="no_budget" />
                </el-select>
              </el-form-item>
              <el-form-item label="采购时间" prop="purchaseTimeline">
                <el-select v-model="registrationForm.purchaseTimeline" placeholder="请选择采购时间" style="width: 100%">
                  <el-option label="3个月内" value="3_months" />
                  <el-option label="6个月内" value="6_months" />
                  <el-option label="1年内" value="1_year" />
                  <el-option label="1年以上" value="over_1_year" />
                  <el-option label="暂无计划" value="no_plan" />
                </el-select>
              </el-form-item>
              <el-form-item label="特殊需求" prop="specialRequests">
                <el-input
                  v-model="registrationForm.specialRequests"
                  type="textarea"
                  :rows="4"
                  placeholder="请描述您的特殊需求或想了解的具体问题"
                />
              </el-form-item>
            </div>

            <div class="form-section">
              <h3>确认信息</h3>
              <div class="registration-summary">
                <div class="summary-item">
                  <span>发布会名称：</span>
                  <span>{{ selectedLaunch?.title }}</span>
                </div>
                <div class="summary-item">
                  <span>活动时间：</span>
                  <span>{{ selectedLaunch?.time }}</span>
                </div>
                <div class="summary-item">
                  <span>活动地点：</span>
                  <span>{{ selectedLaunch?.location }}</span>
                </div>
                <div class="summary-item">
                  <span>参与费用：</span>
                  <span class="free-tag">免费</span>
                </div>
              </div>
              <el-form-item prop="agreement">
                <el-checkbox v-model="registrationForm.agreement">
                  我已阅读并同意<a href="#" class="agreement-link">《发布会参与协议》</a>和<a href="#" class="agreement-link">《隐私政策》</a>
                </el-checkbox>
              </el-form-item>
              <el-form-item prop="newsletter">
                <el-checkbox v-model="registrationForm.newsletter">
                  我希望接收相关产品和活动的最新资讯
                </el-checkbox>
              </el-form-item>
            </div>

            <div class="form-actions">
              <el-button size="large" @click="resetForm">重置表单</el-button>
              <el-button type="primary" size="large" @click="submitRegistration" :loading="submitting">
                确认报名
              </el-button>
            </div>
          </el-form>
        </div>
      </section>

      <!-- 其他发布会推荐 -->
      <section class="recommended-launches-section">
        <h2 class="section-title">其他发布会</h2>
        <div class="launches-grid">
          <div class="launch-card" v-for="launch in recommendedLaunches" :key="launch.id">
            <div class="launch-image">
              <img :src="launch.image" :alt="launch.title">
            </div>
            <div class="launch-info">
              <h4>{{ launch.title }}</h4>
              <p>{{ launch.time }}</p>
              <p>{{ launch.location }}</p>
              <el-button type="text" @click="selectLaunch(launch)">
                立即报名
              </el-button>
            </div>
          </div>
        </div>
      </section>
    </div>

    <!-- 成功对话框 -->
    <el-dialog v-model="successDialogVisible" title="报名成功" width="500px" center>
      <div class="success-content">
        <el-icon class="success-icon"><SuccessFilled /></el-icon>
        <h3>报名成功！</h3>
        <p>您已成功报名参加"{{ selectedLaunch?.title }}"</p>
        <div class="next-steps">
          <h4>接下来：</h4>
          <ul>
            <li>我们将在24小时内发送确认邮件</li>
            <li>发布会前会发送详细议程</li>
            <li>现场将提供产品资料和演示</li>
            <li>可与发布企业直接对接</li>
          </ul>
        </div>
      </div>
      <template #footer>
        <el-button @click="successDialogVisible = false">关闭</el-button>
        <el-button type="primary" @click="$router.push('/activities')">返回活动中心</el-button>
      </template>
    </el-dialog>
  </div>
</template>

<script>
import { ref, reactive, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
import { 
  Clock, 
  Location, 
  User, 
  Tickets,
  SuccessFilled 
} from '@element-plus/icons-vue'

export default {
  name: 'ProductLaunchRegistration',
  setup() {
    const route = useRoute()
    const router = useRouter()
    
    const selectedLaunch = ref(null)
    const registrationFormRef = ref()
    const submitting = ref(false)
    const successDialogVisible = ref(false)

    // 报名表单
    const registrationForm = reactive({
      name: '',
      phone: '',
      email: '',
      position: '',
      company: '',
      industry: '',
      companyType: '',
      city: '',
      purpose: '',
      interestedProducts: [],
      budgetRange: '',
      purchaseTimeline: '',
      specialRequests: '',
      agreement: false,
      newsletter: false
    })

    // 表单验证规则
    const registrationRules = {
      name: [
        { required: true, message: '请输入姓名', trigger: 'blur' }
      ],
      phone: [
        { required: true, message: '请输入联系电话', trigger: 'blur' },
        { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号码', trigger: 'blur' }
      ],
      email: [
        { required: true, message: '请输入邮箱地址', trigger: 'blur' },
        { type: 'email', message: '请输入正确的邮箱格式', trigger: 'blur' }
      ],
      position: [
        { required: true, message: '请输入职位', trigger: 'blur' }
      ],
      company: [
        { required: true, message: '请输入公司名称', trigger: 'blur' }
      ],
      industry: [
        { required: true, message: '请选择所属行业', trigger: 'change' }
      ],
      companyType: [
        { required: true, message: '请选择公司性质', trigger: 'change' }
      ],
      city: [
        { required: true, message: '请输入所在城市', trigger: 'blur' }
      ],
      purpose: [
        { required: true, message: '请选择参与目的', trigger: 'change' }
      ],
      agreement: [
        { validator: (rule, value, callback) => {
          if (!value) {
            callback(new Error('请同意发布会参与协议'))
          } else {
            callback()
          }
        }, trigger: 'change' }
      ]
    }

    // 模拟发布会数据
    const mockLaunches = {
      1: {
        id: 1,
        title: '2025年智能制造解决方案发布会',
        type: '产品发布',
        description: '多家行业领军企业将发布最新智能制造解决方案，展示工业4.0时代的创新技术和产品。',
        time: '2025年3月16日 10:00-12:00',
        location: '广州国际会展中心 发布厅',
        capacity: 300,
        registered: 189,
        image: 'https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=400&h=300&fit=crop',
        highlights: [
          '全球首发多款工业机器人新品',
          'AI驱动的智能制造平台演示',
          '现场产品体验和技术交流',
          '与企业高管面对面对接机会'
        ],
        companies: ['优必选科技', 'ABB中国', '库卡机器人', '发那科', '安川电机']
      },
      2: {
        id: 2,
        title: '服务机器人创新产品发布会',
        type: '新品发布',
        description: '展示最新服务机器人产品，涵盖医疗、教育、家庭等多个应用场景。',
        time: '2025年3月17日 14:00-16:00',
        location: '广州国际会展中心 多功能厅',
        capacity: 200,
        registered: 156,
        image: 'https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=400&h=300&fit=crop',
        highlights: [
          '家庭服务机器人新品首发',
          '医疗机器人应用案例分享',
          '教育机器人互动体验',
          '服务机器人市场趋势分析'
        ],
        companies: ['科沃斯机器人', '小米生态链', '大疆创新', '云迹科技']
      }
    }

    // 推荐发布会数据
    const recommendedLaunches = ref([
      {
        id: 2,
        title: '服务机器人创新产品发布会',
        time: '2025年3月17日 14:00-16:00',
        location: '多功能厅',
        image: 'https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=300&h=200&fit=crop'
      }
    ])

    // 加载发布会信息
    const loadLaunch = () => {
      const launchId = route.query.id || route.query.launchId || '1'
      const launch = mockLaunches[launchId]
      if (launch) {
        selectedLaunch.value = launch
        // 过滤推荐发布会，排除当前发布会
        recommendedLaunches.value = recommendedLaunches.value.filter(
          item => item.id != launchId
        )
      } else {
        // 默认显示第一个发布会
        selectedLaunch.value = mockLaunches[1]
      }
    }

    // 选择发布会
    const selectLaunch = (launch) => {
      router.push(`/product-launch-registration?id=${launch.id}`)
    }

    // 重置表单
    const resetForm = () => {
      Object.assign(registrationForm, {
        name: '',
        phone: '',
        email: '',
        position: '',
        company: '',
        industry: '',
        companyType: '',
        city: '',
        purpose: '',
        interestedProducts: [],
        budgetRange: '',
        purchaseTimeline: '',
        specialRequests: '',
        agreement: false,
        newsletter: false
      })
      if (registrationFormRef.value) {
        registrationFormRef.value.resetFields()
      }
    }

    // 提交报名
    const submitRegistration = async () => {
      if (!registrationFormRef.value) return
      
      try {
        await registrationFormRef.value.validate()
        
        // 检查发布会容量
        if (selectedLaunch.value.registered >= selectedLaunch.value.capacity) {
          ElMessage.error('抱歉，该发布会报名人数已满')
          return
        }

        submitting.value = true
        
        // 调用真实的后端接口
        const response = await subpageApi.submitProductLaunchRegistration({
          launchId: selectedLaunch.value.id,
          launchName: selectedLaunch.value.title,
          ...registrationForm,
          registrationType: 'product_launch',
          submitTime: new Date().toISOString()
        })
        
        if (response && response.code === '200') {
          submitting.value = false
          successDialogVisible.value = true
          
          // 更新报名人数
          selectedLaunch.value.registered += 1
        } else {
          ElMessage.error(response?.msg || '发布会报名提交失败，请重试')
        }
        
      } catch (error) {
        console.error('发布会报名提交失败:', error)
        ElMessage.error(error.message || '发布会报名提交失败，请重试')
      } finally {
        submitting.value = false
      }
    }

    onMounted(() => {
      loadLaunch()
    })

    return {
      selectedLaunch,
      registrationForm,
      registrationRules,
      registrationFormRef,
      submitting,
      successDialogVisible,
      recommendedLaunches,
      selectLaunch,
      resetForm,
      submitRegistration
    }
  }
}
</script>

<style scoped>
.product-launch-registration {
  min-height: 100vh;
  background: linear-gradient(135deg, #320063 0%, #4a0a8a 100%);
  color: white;
}

.page-header {
  padding: 60px 0 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb :deep(.el-breadcrumb__inner) {
  color: white;
  cursor: pointer;
}

.breadcrumb :deep(.el-breadcrumb__inner:hover) {
  color: #ff6b35;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #fff, #e0e0ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: white;
}

/* 发布会信息部分 */
.launch-info-section {
  padding: 40px 0;
}

.launch-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.launch-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.launch-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.launch-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff6b35;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.launch-details h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: white;
}

.launch-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.launch-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.meta-item .el-icon {
  margin-right: 8px;
  color: #ff6b35;
}

.launch-highlights,
.launch-companies {
  margin-bottom: 20px;
}

.launch-highlights h4,
.launch-companies h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ff6b35;
}

.launch-highlights ul {
  list-style: none;
  padding: 0;
}

.launch-highlights li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.launch-highlights li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #ff6b35;
  font-weight: bold;
}

.companies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-tag {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

/* 报名表单部分 */
.registration-form-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section {
  margin-bottom: 40px;
}

.form-section h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ff6b35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.registration-summary {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem;
}

.summary-item:last-child {
  margin-bottom: 0;
}

.free-tag {
  background: #67c23a;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.agreement-link {
  color: #ff6b35;
  text-decoration: none;
}

.agreement-link:hover {
  text-decoration: underline;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.form-actions .el-button {
  margin: 0 10px;
  padding: 12px 30px;
  font-size: 1rem;
}

/* 推荐发布会部分 */
.recommended-launches-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.launches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.recommended-launches-section .launch-card {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.recommended-launches-section .launch-card:hover {
  transform: translateY(-5px);
}

.recommended-launches-section .launch-image {
  height: 150px;
}

.recommended-launches-section .launch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.launch-info {
  padding: 20px;
}

.launch-info h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.launch-info p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

/* 成功对话框 */
.success-content {
  text-align: center;
  padding: 20px;
}

.success-icon {
  font-size: 4rem;
  color: #67c23a;
  margin-bottom: 20px;
}

.success-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #67c23a;
}

.success-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.next-steps {
  text-align: left;
  background: rgba(103, 194, 58, 0.1);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(103, 194, 58, 0.3);
}

.next-steps h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #67c23a;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.next-steps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #67c23a;
  font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .launch-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .launch-meta {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 20px;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

/* Element Plus 组件样式覆盖 */
.product-launch-registration :deep(.el-form-item__label) {
  color: white !important;
  font-weight: 500;
}

.product-launch-registration :deep(.el-input__wrapper) {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

.product-launch-registration :deep(.el-input__inner) {
  color: white !important;
}

.product-launch-registration :deep(.el-select .el-input__wrapper) {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.product-launch-registration :deep(.el-textarea__inner) {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

.product-launch-registration :deep(.el-checkbox__label) {
  color: white !important;
}

.product-launch-registration :deep(.el-radio__label) {
  color: white !important;
}

.product-launch-registration :deep(.el-checkbox__input.is-checked .el-checkbox__inner) {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
}

.product-launch-registration :deep(.el-radio__input.is-checked .el-radio__inner) {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
}

.product-launch-registration :deep(.el-checkbox__inner:hover) {
  border-color: #ff6b35 !important;
}

.product-launch-registration :deep(.el-radio__inner:hover) {
  border-color: #ff6b35 !important;
}
</style>
